package com.swz.dcrm.model;

import android.content.Intent;

public class PersonalInfo {
    private String area;
    private long id;
    private String name;
    private String nameCardUrl;
    private String phone;
    private Integer sex;
    private CarShop carShop;
    private Role role;
    private String headPortraitUrl;
    private String groupName;
    private Long groupId;

    public String getHeadPortraitUrl() {
        return headPortraitUrl;
    }

    public void setHeadPortraitUrl(String headPortraitUrl) {
        this.headPortraitUrl = headPortraitUrl;
    }

    public String getSexDesc(){
        if(sex==null){
            return "男";
        }
        if(sex==0){
            return "女";
        }
        return "男";
    }

    public boolean isBoy(){

        return sex==null||sex==1;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public CarShop getCarShop() {
        return carShop;
    }

    public void setCarShop(CarShop carShop) {
        this.carShop = carShop;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNameCardUrl() {
        return nameCardUrl;
    }

    public void setNameCardUrl(String nameCardUrl) {
        this.nameCardUrl = nameCardUrl;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }
}
